home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / ROCKN01.422 < prev    next >
Text File  |  1993-04-16  |  2KB  |  70 lines

  1. ROCKN01.MOD, Hack of the YOURINFO.MOD, but for XFER Section
  2. Rockn #36 @4506 2[47Thanatos2]0
  3. Tue Apr 13 01:21:37 1993
  4. ROCKN01.MOD
  5. =============================================================================
  6. Version: 4.22
  7. Files: XFER.C
  8. Discription: Spruces Up The Look Of Users Info In Files Section
  9. Difficulty: If you can't do it you need to trash you compiler!
  10. Author: Rockn #66@4516
  11.  
  12. Disclaimer: It works for me, But you installed it so it's your baby!
  13. =============================================================================
  14. BACKUP YOUR SOURCE
  15.  
  16. On to the mod, I have used ^C instead of the heart code so that everyone can 
  17. add colors to suit thier own needs.
  18.  
  19. In XFER.C look for       void yourinfodl(void) which reads 
  20.  
  21. void yourinfodl(void)
  22. {
  23.   
  24.   nl();
  25.   nl();
  26.   outstr(get_string(796))
  27.   npr("%ldk",thisuser.uk);
  28.   outstr(get_string(797))
  29.   npr("%d",thisuser.uploaded);
  30.   pl(get_string(798));
  31.   outstr(get_string(799));
  32.   npr("%ldk",thisuser.dk);
  33.   outstr(get_string(797));
  34.   npr("%d",thisuser.downloaded);
  35.   pl(get_string(798));
  36.   outstr(get_string(800)); npr("%6.3f\r\n",ratio());
  37.   outstr(get_string(801)); pln(thisuser.dsl);
  38.   nl();
  39. }
  40.  
  41. Change it look like this
  42.  
  43. void yourinfodl(void)
  44. {
  45.  
  46.   nl();
  47.   npr("^CYour Xfer Info\r\n");
  48.   npr("^C╒════════════════════════════╕\r\n");
  49.   npr("^C│^CUploads   : %ldk in %d Files  ^C│\r\n",thisuser.uk,
  50.   thisuser.uploaded);
  51.   npr("^C│^CDownloads : %ldk in %d Files  ^C│\r\n",thisuser.dk,
  52.   thisuser.downloaded);
  53.   npr("^C│^CRatio     : %-14.3f^C│\4\n",ratio());
  54.   npr("^C│^CYour DSL  : %-16d^C│\r\n",thisuser.dsl);
  55.   npr("^C╘════════════════════════════╛");
  56.   nl();
  57. }
  58.  
  59. Now Recompile!
  60.  
  61.  
  62. This is me VERY first mod, but I have to give credit where dredit is due.
  63.  
  64. I got the idea from another mod namely ( YOURINFO.MOD ) written by Alpine Bob
  65. so if any of this looks fimilar don't panic.
  66.  
  67. 2===========  7<--(That is a divider line)--<<
  68.  
  69. 1Alkar's Keep: (405)677-6159  2Over 1.5 gigs available!
  70.